package Base;

import java.util.Calendar;
import GUI.WayGui;


/**
 *  This class contains the main method. And it is the entry point of the application.
 *  @author Wayang Group Bremen
 *  @version 0.9
 *  @param args command line parameters as strings.
 */
public class Wayang {

	public static void main(String args[]) {
	    final MovieCompilation story = new MovieCompilation();  // we create a new, empty compilation as first..
		story.addMovie(); 										// ... and we add an empty movie
		
		Calendar cal = Calendar.getInstance();
		 int day = cal.get(Calendar.DATE);
	     int month = cal.get(Calendar.MONTH)+1;
	     int year = cal.get(Calendar.YEAR);
	     
	     // each story has its date, so we create it at the beginning
	     story.date = Integer.toString(day).concat("/").concat(Integer.toString(month).concat("/")
	    		        .concat(Integer.toString(year)));
 
	     
		java.awt.EventQueue.invokeLater(new Runnable() {
			
			// we create an thread and start the gui-class "WayGui" as a thread
			public void run() {
				
				new WayGui(story);  // we hand the story object to the new instance
			}
		});
	}
}